<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view(TPL_FOLDER."header");?>

<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" >
  <tr>
    <td width="3%" align="left" ><img src="{tpl_path}images/forward.jpg" /></td>
    <td width="97%" align="left" >您现在的位置：<a href="<?php echo site_url(CTL_FOLDER."product");?>">产品列表</a> &gt; 批量编辑产品</td>
  </tr>
</table>
<fieldset>
<legend>批量处理产品图片</legend>
<form action="<?php echo site_url(CTL_FOLDER."product/image_edit");?>" method="post" name="dialog_edit_form" id="dialog_edit_form" onsubmit="return Validator.Validate(this,3);">
  <table width="100%"  border="0" cellpadding="3" cellspacing="0" >
    <tr>
      <td width="169"><font color="#FF0000">*</font>按分类来处理：</td>
      <td width="544"><select name="catalog_id" id="catalog_id">
          <option value="-1">==全部产品==</option>
          <option value=",0,">==根目录==</option>
          <?php foreach($catalog_list as $row) {?>
          <option value=",<?php echo $row->id;?>,"><?php echo str_repeat("&nbsp;&nbsp;",$row->deep_id).$row->cat_name;?></option>
          <?php }?>
        </select>
        &nbsp;&nbsp;
        <input name="action" type="radio" id="action" value="thumb" checked="checked"/>
        重新生成缩略图 &nbsp;&nbsp;
        <input name="action" type="radio" id="action" value="watermark" title="选择该项之前，请确定该分类下的产品图片没有添加过水印，否则会重复添加。"/>
        加水印 </td>
    </tr>
    <tr>
      <td>缩略图尺寸(像素)：</td>
      <td>宽 <input name="thumb_width" type="text" id="thumb_width" size="2" maxlength="10" dataType="Integer" msg="宽度值必须是大于0的数字" require="false" /> x
      高 <input name="thumb_height" type="text" id="thumb_height" size="2" maxlength="10" dataType="Integer" msg="高度值必须是大于0的数字" require="false"  /> <img src="{tpl_path}images/notice.gif" class="tooltips" title="注：如果不填写，将使用配置信息里设置的缩略图尺寸" /></td>
    </tr>
  </table>
  <input type="submit" name="sbmit" style=" margin-left:160px; width:100px; margin-bottom:10px; margin-top:10px" value="开始批处理" class="button-style2" />
</form>
</fieldset>
<?php $this->load->view(TPL_FOLDER."footer");?>
